package net.bolue.web.mvc;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.bolue.sysmng.exception.BolueException;
import net.bolue.sysmng.model.MdbopResModel;
import net.bolue.sysmng.tblbean.MdbopRes;
import net.bolue.web.report.RepConstants;
import net.bolue.web.util.RequestUtil;

public class MDBOpAction extends AbstractAction{

	@Override
	public ActionResult perform(HttpServletRequest request,
			HttpServletResponse response) throws BolueException {
		String subSys = RequestUtil.getParamValue(request, RepConstants.REP_SUBSYS_KEY);
		String mdbopID = RequestUtil.getParamValue(request, RepConstants.REP_MDBOP_KEY);
		if(subSys==null || subSys.trim().length()==0 || mdbopID==null || mdbopID.trim().length()==0){
			throw new BolueException(1, "新增URL中必须提供subSys及insertID参数值!");
		}
		MdbopResModel mdbopResModel = new MdbopResModel(request);
		MdbopRes mdbopRes = mdbopResModel.getMdbopRes(subSys, mdbopID);
		return null;
	}

}
